/*******************************************************************************
 * Level Master 2000
 * Copyright (C) 2010 Christian Herzog
 * For more information see http://code.google.com/p/levelmaster2000/
 *
 * This file is licensed under the terms of the MIT license, see
 * http://www.opensource.org/licenses/mit-license.php for further information.
 ******************************************************************************/

#ifndef DELETE_ENTITY_COMMAND_H
#define DELETE_ENTITY_COMMAND_H

#include <QUndoCommand>
#include <QStringList>

class EntityExplorer;
class Entity;
class LevelMaster2000;

class DeleteEntityCommand : public QUndoCommand
{
public:
    DeleteEntityCommand( EntityExplorer* entityExplorer,
                         QString name,
                         QString group,
                         QString entityXML,
                         QUndoCommand *parent = 0 );

    void init();

    void undo();
    void redo();

private:
    EntityExplorer *entityExplorer;
    QString name;
    QString group;
    QString entityXML;
    QList<Entity*> selectedEntitiesAtCreation;
};

#endif
